CSS Full Course Day 4 [Hindi] π» | Text Styling π | Mohit Decodes
βοΈ CSS Tutorial β Day 4: Text Styling
Welcome to Day 4 of the CSS Full Course [Hindi] by Mohit Decodes! Todayβs lesson focuses on Text Styling β how to beautifully style text elements using CSS.
πΉ Key CSS Properties for Text Styling
colorβ Change text colorfont-familyβ Set font style (e.g., Arial, Verdana)font-sizeβ Adjust size of textfont-weightβ Make text bold or light (normal,bold,lighter)font-styleβ Italicize text (normal,italic,oblique)text-decorationβ Underline, overline, line-throughtext-transformβ Change text case (uppercase,lowercase,capitalize)letter-spacingβ Space between lettersword-spacingβ Space between wordstext-alignβ Align text (left,right,center,justify)line-heightβ Control spacing between lines
βοΈ Example CSS:
css
CopyEdit
p {
color: #333;
font-family: 'Arial', sans-serif;
font-size: 18px;
font-weight: bold;
font-style: italic;
text-decoration: underline;
text-transform: uppercase;
letter-spacing: 2px;
word-spacing: 5px;
text-align: center;
line-height: 1.5;
}
π‘ Tips:
- Combine multiple properties for rich text effects
- Use web-safe fonts or Google Fonts for better typography
line-heightimproves readability by adjusting spacing between lines- Use
text-align: justify;to create clean blocks of text